<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<t:base type="jquery,easyui,tools"/>
<script type="text/javascript" src="${webRoot}/plug-in/fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="${webRoot}/plug-in/fancybox/fancybox/jquery.fancybox-1.3.4.js"></script>
<link rel="stylesheet" type="text/css" href="${webRoot}/plug-in/fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<style type="text/css">
/*    .datagrid-cell img {
        width: 100px;
        height: 100px;
    }*/
</style>
<script>
    function LogoFormatter(val,row){
        return '<a rel="datagrid_group" href="'+val+'" title=""><img alt="" src="'+val+'" style="width:30px; height:30px"></a>';
    }
    function bandImg(){
        $("a[rel=datagrid_group]").fancybox({
            'overlayShow'	: false,
            'transitionIn'	: 'elastic',
            'transitionOut'	: 'elastic'
        });
    }
</script>
<div id="main_typegroup_list" class="easyui-layout" fit="true">
    <div region="center" style="padding: 1px;">
        <t:datagrid name="paymentList" title="" actionUrl="paymentController.do?datagrid" onLoadSuccess="bandImg" idField="id" treegrid="false">
            <t:dgCol title="id" field="id" hidden="true"></t:dgCol>
            <t:dgCol title="支付名称" field="title" width="100" ></t:dgCol>
            <t:dgCol title="是否启用" field="enable" width="100" dictionary="isno"></t:dgCol>
            <t:dgCol title="logo" field="logoPath" extendParams="formatter:LogoFormatter;" width="100"></t:dgCol>
            <t:dgCol title="是否在线支付" field="isOnline" width="100" dictionary="isno"></t:dgCol>
            <t:dgCol title="支持系统" field="supportSys" width="100" dictionary="supportSys"></t:dgCol>
            <t:dgCol title="common.operation" field="opt"></t:dgCol>
            <t:dgDelOpt url="paymentController.do?del&id={id}" title="common.delete"></t:dgDelOpt>

            <t:dgToolBar title="新增" langArg="common.language" icon="icon-add" url="paymentController.do?addorupdate" funname="add" height="360"></t:dgToolBar>
            <t:dgToolBar title="修改" langArg="common.language" icon="icon-edit" url="paymentController.do?addorupdate" funname="update" height="360"></t:dgToolBar>
        </t:datagrid>
    </div>
</div>


<script>

</script>